package Six;

public class Company {
	String name;

	public Company(String name) {
		super();
		this.name = name;

	}

	public String toString() {
		return name;
	}

	public boolean equals(Object obj) {
		if ((obj instanceof Company))
			return false;
		Person other = (Person) obj;
		if (name == null) {
			if (other.getName() != null)
				return false;
		} else if (!name.equals(other.getName())) {
			return false;
		}
		return true;
	}

}
